package tech.waterism.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import tech.waterism.entity.DZqMethod;
import tech.waterism.entity.DZqParam;
import tech.waterism.entity.DZqSpillway;
import tech.waterism.entity.DZqSpillwayH;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class DZqMethodDto extends DZqMethod {

    /**
     * DZqParam中的字段：流量系数
     */
    @ApiModelProperty(value = "流量系数")
    private Double mflow;

    /**
     * DZqParam中的字段：闸门宽度
     */
    @ApiModelProperty(value = "闸门宽度")
    private Double gatewidth;

    @JsonIgnore
    private DZqParam dZqParam;

    /**
     * 单孔水位泄量关系曲线
     */
    @ApiModelProperty(value = "单孔水位泄量关系曲线")
    private List<DZqSpillway> zqSpillways;

    /**
     * 单孔水位泄量关系曲线
     */
    @ApiModelProperty(value = "单孔水位泄量关系曲线")
    private List<DZqSpillwayH> zqSpillwayHs;
}

